package com.zjhome.cloudnote.service;

import java.util.List;

import com.zjhome.cloudnote.domain.ResourceInfo;

/**
 * 资源管理器服务
 * 
 * @author zjhome
 *
 */
public interface ExplorerService {	
	/**
	 * 获取文件夹下资源信息
	 * 
	 * @param did	文件夹id
	 * @param name	资源名称
	 * @param uid	用户id
	 * @return
	 * @throws Exception
	 */
	List<ResourceInfo> selectSubDirInfo(String did, String name, String uid) throws Exception;
	
	/**
	 * 更新资源
	 * 
	 * @param resourceInfo
	 * @param uid
	 * @return
	 * @throws Exception
	 */
	int updateResource(ResourceInfo resourceInfo, String uid) throws Exception;
	
	/**
	 * 删除资源（移动到回收站中）
	 * 
	 * @param resourceInfo
	 * @param uid
	 * @return
	 * @throws Exception
	 */
	int deleteResource(ResourceInfo resourceInfo, String uid) throws Exception;
	
}
